﻿<UserControl x:Class="monitor_server_2_WPF.DeviceListParamPanels.AddStationPanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="191" d:DesignWidth="222">
    <Grid Name="MainGrid">
        <Grid.Style>
            <Style TargetType="{x:Type Grid}">
                <Style.Resources>
                    <Storyboard x:Key="FlashExpandAnimation" >
                        <DoubleAnimation Storyboard.TargetProperty="Height" From="150" To="191" Duration="0:0:0.3"/>
                    </Storyboard>
                    <Storyboard x:Key="ShowExpandAnimation" >
                        <DoubleAnimation Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.2"/>
                    </Storyboard>
                </Style.Resources>
                <Style.Triggers>
                    <Trigger Property="IsVisible"  Value="True">
                        <Trigger.EnterActions>
                            <BeginStoryboard x:Name="flash1" Storyboard="{StaticResource FlashExpandAnimation}" />
                            <BeginStoryboard x:Name="show1" Storyboard="{StaticResource ShowExpandAnimation}" />
                        </Trigger.EnterActions>
                        <Trigger.ExitActions>
                            <!--<StopStoryboard BeginStoryboardName="flash"/>-->
                        </Trigger.ExitActions>
                    </Trigger>
                </Style.Triggers>
            </Style>
        </Grid.Style>
        <StackPanel Name="ContentPanel" VerticalAlignment="Bottom">
            <Separator HorizontalAlignment="Stretch" Height="5" Margin="0,10,0,0"/>
            <Label Name="BlrLabel"  Content="Label" Foreground="White"/>
            <ComboBox Name="BlrBox" SelectionChanged="BlrBox_OnSelectionChanged"/>
            <Label Name="StationLabel" Content="Label" Foreground="White"/>
            <TextBox Name="StationBox" Height="23" TextWrapping="Wrap" Text="" TextChanged="StationBox_OnTextChanged"/>
            <Button Name="AcceptButton" IsEnabled="False" Content="Button" HorizontalAlignment="Center" Margin="0,10,0,0" Click="AcceptButton_Click"/>
            <TextBlock Name="EmptyBlrInfoBox" TextWrapping="Wrap" Text="TextBlock" Foreground="DarkOrange" HorizontalAlignment="Center" Margin="0,10,0,0"/>
            <TextBlock Name="EmptyStationInfoBox" TextWrapping="Wrap" Text="TextBlock" Foreground="DarkOrange" HorizontalAlignment="Center" Margin="0,3,0,0"/>
            <TextBlock Name="ExistStationInfoBox" TextWrapping="Wrap" Text="TextBlock" Visibility="Collapsed" Foreground="DarkOrange" HorizontalAlignment="Center" Margin="0,3,0,0"/>
        </StackPanel>

    </Grid>
</UserControl>
